package com.social.service.trainExperience.impl;

import com.social.entity.TrainExperience;
import com.social.mapper.TrainExperienceMapper;
import com.social.service.trainExperience.TrainExperienceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "trainExperienceService")
public class TrainExperienceServiceImpl implements TrainExperienceService {

    @Autowired
    private TrainExperienceMapper trainExperienceMapper;


    @Override
    public int addTrainExperience(TrainExperience trainExperience) {
        return trainExperienceMapper.insertSelective(trainExperience);
    }
    @Override
    public List<TrainExperience> selectByHouseKeeperId(String id) {
        return trainExperienceMapper.selectByHouseKeeperId(id);
    }

    @Override
    public int deleteByHouseKeeperId(String houseKeeperId) {
        return trainExperienceMapper.deleteByHouseKeeperId(houseKeeperId);
    }
}
